﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ChoViet.CMS.ViewModels.AdDetailsViewModel>" %>
<div class="pro-tool" id="pro-share">
<ul>
    <li style=" color:#21A2E7; font-size:14px; font-weight:bold;">Chia sẻ: </li>
   
    <li><a class="icon fb" href="http://www.facebook.com/share.php?u=<%= Html.Encode(Request.Url)%>&t=<%=Html.Encode(Model.Ad.Title)%>" title="Share this on Facebook" rel="nofollow" target="_blank">&nbsp;</a></li>
    <li><a class="icon tw" href="http://twitter.com/home?status=<%= Model.Ad.Title.Replace(' ','+') %> - <%= Html.Encode(Request.Url)%>" title="Tweet this" rel="nofollow" target="_blank">&nbsp;</a></li>
    <li><a class="icon gb" href="http://www.google.com/buzz/post?url=<%= Html.Encode(Request.Url)%>&title=<%= Model.Ad.Title%>" title="Google Buzz" rel="nofollow" target="_blank">&nbsp;</a></li>
    <li><a class="icon de" href="http://del.icio.us/post?url=<%= Html.Encode(Request.Url)%>&title=<%= Model.Ad.Title%>" title="Share this on del.icio.us" rel="nofollow" target="_blank">&nbsp;</a></li>
    <li><a class="icon dg" href="http://digg.com/submit?phase=2&url=<%= Html.Encode(Request.Url)%>&title=<%= Model.Ad.Title%>" title="Digg this!" rel="nofollow" target="_blank">&nbsp;</a></li>
    <li><a class="icon yb" href="http://buzz.yahoo.com/buzz?targetUrl=<%= Html.Encode(Request.Url)%>&headline=<%=Model.Ad.Title%>&summary=<%=Model.Ad.Title%>" title="Share this on Yahoo Bookmark" rel="nofollow" target="_blank">&nbsp;</a></li>
</ul>
</div>
<script type="text/javascript">
    function share_facebook() {
        u = location.href;
        t = "đây là tiêu đề";
        window.open("http://www.facebook.com/share.php?u=" + encodeURIComponent(u) + "&t=" + encodeURIComponent(t))
    }
</script>

